package com.zbkj.common.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
public class CommunityQuestionRequest {
    @NotNull
    private Integer id;

    @NotEmpty
    @ApiModelProperty(value = "问题")
    private String title;

    @NotEmpty
    @ApiModelProperty(value = "答案")
    private String content;

    @NotEmpty
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
